package com.zy.mybatis.dao;


import com.zy.mybatis.entity.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BookDao {

    @Select("select id,book_name,book_type,book_author,create_time,update_time from book")
    List<Book> findBooks();
}
